package com.commpany.servie.basic.promotion.business.write.productPromotionMap.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.commpany.jdq.core.orm.Pagination;
import com.commpany.servie.basic.promotion.business.write.productPromotionMap.ProductPromotionMapWriteManage;
import com.commpany.servie.basic.promotion.dao.write.ProductPromotionMapWriteDAO;
import com.commpany.servie.basic.promotion.po.ProductPromotionMapPO;
@Service
public class ProductPromotionMapWriteManageImpl implements ProductPromotionMapWriteManage {
	Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private ProductPromotionMapWriteDAO productPromotionMapWriteDAO;
	@Override
	public int insertProductPromotionMapService( ProductPromotionMapPO po ){
	
	  return productPromotionMapWriteDAO.insert(po);
	}
	@Override
    public int updateProductPromotionMapService( ProductPromotionMapPO po ){
        return productPromotionMapWriteDAO.update(po);
    }
    
    @Override
    public int deleteProductPromotionMapService( ProductPromotionMapPO po ){
        return productPromotionMapWriteDAO.delete(po);
    }
}
	